#!/bin/bash
echo
echo –n "please input your name: "
read name
while [ "${name}" != "cosmos" ]do
echo -n "the name you input is wrong,please input again: ";#提示用户输入错误，并等待用户重新输入
read name
done
